 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.Valid;
 import javax.validation.constraints.NotBlank;
 import java.io.Serializable;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class AnswerModel implements Serializable {

     @NotBlank(message="questionLevel字段不能为空!")
	 private String questionLevel;

     @NotBlank(message="questionUpLevel字段不能为空!")
	 private String questionUpLevel;

     @NotBlank(message="questionCode字段不能为空!")
	 private String questionCode;

     @NotBlank(message="questionUpCode字段不能为空!")
	 private String questionUpCode;

     @NotBlank(message="questionContent字段不能为空!")
	 private String questionContent;

     @NotBlank(message="answer字段不能为空!")
	 private String answer;

     @NotBlank(message="answerContTent字段不能为空!")
	 private String answerContTent;

	 private String mzMsgCode;

     @Valid
	 private OptionListModel optionList;

     public String getQuestionLevel() {
         return questionLevel;
     }

     public void setQuestionLevel(String questionLevel) {
         this.questionLevel = questionLevel;
     }

     public String getQuestionUpLevel() {
         return questionUpLevel;
     }

     public void setQuestionUpLevel(String questionUpLevel) {
         this.questionUpLevel = questionUpLevel;
     }

     public String getQuestionCode() {
         return questionCode;
     }

     public void setQuestionCode(String questionCode) {
         this.questionCode = questionCode;
     }

     public String getQuestionUpCode() {
         return questionUpCode;
     }

     public void setQuestionUpCode(String questionUpCode) {
         this.questionUpCode = questionUpCode;
     }

     public String getQuestionContent() {
         return questionContent;
     }

     public void setQuestionContent(String questionContent) {
         this.questionContent = questionContent;
     }

     public String getAnswer() {
         return answer;
     }

     public void setAnswer(String answer) {
         this.answer = answer;
     }

     public String getAnswerContTent() {
         return answerContTent;
     }

     public void setAnswerContTent(String answerContTent) {
         this.answerContTent = answerContTent;
     }

     public String getMzMsgCode() {
         return mzMsgCode;
     }

     public void setMzMsgCode(String mzMsgCode) {
         this.mzMsgCode = mzMsgCode;
     }

     public OptionListModel getOptionList() {
         return optionList;
     }

     public void setOptionList(OptionListModel optionList) {
         this.optionList = optionList;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         AnswerModel that = (AnswerModel) o;

         return new EqualsBuilder()
                 .append(questionLevel, that.questionLevel)
                 .append(questionUpLevel, that.questionUpLevel)
                 .append(questionCode, that.questionCode)
                 .append(questionUpCode, that.questionUpCode)
                 .append(questionContent, that.questionContent)
                 .append(answer, that.answer)
                 .append(answerContTent, that.answerContTent)
                 .append(mzMsgCode, that.mzMsgCode)
                 .append(optionList, that.optionList)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(questionLevel)
                 .append(questionUpLevel)
                 .append(questionCode)
                 .append(questionUpCode)
                 .append(questionContent)
                 .append(answer)
                 .append(answerContTent)
                 .append(mzMsgCode)
                 .append(optionList)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "AnswerModel{" +
                 "questionLevel='" + questionLevel + '\'' +
                 ", questionUpLevel='" + questionUpLevel + '\'' +
                 ", questionCode='" + questionCode + '\'' +
                 ", questionUpCode='" + questionUpCode + '\'' +
                 ", questionContent='" + questionContent + '\'' +
                 ", answer='" + answer + '\'' +
                 ", answerContTent='" + answerContTent + '\'' +
                 ", mzMsgCode='" + mzMsgCode + '\'' +
                 ", optionList=" + optionList +
                 '}';
     }
 }
